home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / bc30p1.zip / EXEC.BAT < prev    next >
DOS Batch File  |  1992-01-16  |  2KB  |  68 lines

  1. echo off
  2. if not exist EXEC.OBS goto ERROR_NOOBJ
  3.  
  4. if not exist %1cs.lib goto NOSMALLLIB
  5. echo Patching small library...
  6. copy EXEC.OBS EXEC.OBJ
  7. tlib %1cs.lib +- EXEC.OBJ
  8. del EXEC.OBJ
  9. if errorlevel 1 goto ERROR_NOTLIB
  10. goto MEDIUM
  11. :NOSMALLLIB
  12. echo Cannot find CS.LIB to patch small library.
  13.  
  14. :MEDIUM
  15. if not exist %1cm.lib goto NOMEDLIB
  16. echo Patching medium library...
  17. copy EXEC.OBM EXEC.OBJ
  18. tlib %1cm.lib +- EXEC.OBJ
  19. del EXEC.OBJ
  20. goto COMPACT
  21. :NOMEDLIB
  22. echo Cannot find CM.LIB to patch medium library.
  23.  
  24. :COMPACT
  25. if not exist %1cc.lib goto NOCOMPACTLIB
  26. echo Patching compact library...
  27. copy EXEC.OBC EXEC.OBJ
  28. tlib %1cc.lib +- EXEC.OBJ
  29. del EXEC.OBJ
  30. goto LARGE
  31. :NOCOMPACTLIB
  32. echo Cannot find CC.LIB to patch compact library.
  33.  
  34. :LARGE
  35. if not exist %1cl.lib goto NOLARGELIB
  36. echo Patching large library...
  37. copy EXEC.OBL EXEC.OBJ
  38. tlib %1cl.lib +- EXEC.OBJ
  39. del EXEC.OBJ
  40. goto HUGE
  41. :NOLARGELIB
  42. echo Cannot find CL.LIB to patch large library.
  43.  
  44. :HUGE
  45. if not exist %1ch.lib goto NOHUGELIB
  46. echo Patching huge library...
  47. copy EXEC.OBH EXEC.OBJ
  48. tlib %1ch.lib +- EXEC.OBJ
  49. del EXEC.OBJ
  50. goto DONE
  51. :NOHUGELIB
  52. echo Cannot find CH.LIB to patch huge library.
  53. goto DONE
  54.  
  55. :ERROR_NOOBJ
  56. echo The patch object module EXEC is not in the current directory.
  57. echo Cannot patch libraries.
  58. goto DONE
  59.  
  60. :ERROR_NOTLIB
  61. echo A problem was encountered executing TLIB.  Either the Turbo Librarian
  62. echo cannot be located along your DOS path, or an error occurred.  Consult
  63. echo your Borland C++ Tools & Utilities Guide for more information on why
  64. echo TLIB might not be operating correctly.
  65.  
  66. :DONE
  67. echo Done.
  68.